﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<title>insert_id test</title>
<link type="text/css" rel="stylesheet" href="../styles.css" />
</head>
<body>
<?php
require("dbInc.php");
$mysqliObj = new mysqli($dbHost, $dbUser, $dbPass, $dbDB);
$sql = "insert into tbl_test (vName, iAge) values ('roger', 45);";
$mysqliObj->query($sql);
echo "newID: " . $mysqliObj->insert_id;
$mysqliObj->close();
?>
</body>
</html>
